-- GENERATED SPELL FOR [Mo'grosh Enforcer] --


function spell0_1179(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_1179', 668, 1)
end

function spell1_1179(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_1179', 30340, 1)
end

function spell2_1179(pUnit, Event) --@Thunder Clap,Self--
pUnit:FullCastSpellOnTarget(8198,pUnit)
pUnit:RegisterEvent('Sorts_1179', 14000, 1)
end

function Sorts_1179(pUnit, Event)
local choix_sorts_1179 = math.random(0, 2)
if choix_sorts_1179 == 0 then
pUnit:RegisterEvent('spell0_1179', 1, 1)
end
if choix_sorts_1179 == 1 then
pUnit:RegisterEvent('spell1_1179', 1, 1)
end
if choix_sorts_1179 == 2 then
pUnit:RegisterEvent('spell2_1179', 1, 1)
end
end

function mob1179_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1179', math.random(1500, 3000), 1)
end

function mob1179_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1179_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1179_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1179, 1, 'mob1179_Action')
RegisterUnitEvent(1179, 2, 'mob1179_Leave')
RegisterUnitEvent(1179, 3, 'mob1179_Kill')
RegisterUnitEvent(1179, 4, 'mob1179_Die')
